package com.atguigu.springcloud.payment.service;

import com.atguigu.springcloud.framework.common.api.ApiCode;
import com.atguigu.springcloud.framework.common.api.ApiResult;
import com.atguigu.springcloud.framework.core.bean.RequestDetail;
import org.springframework.stereotype.Component;

/**
 * @author lenovo
 * @version 1.0
 * @date 2021/1/18 14:26
 */
@Component
public class PaymentFeginFallBackService implements PaymentFeginService{


    @Override
    public ApiResult<RequestDetail> getPayment(Integer id) {
        return ApiResult.result(ApiCode.HTTP_REQUEST_METHOD_NOT_SUPPORTED_EXCEPTION,"OpenFegin 试看看，-----PaymentFeginFallBackService",new RequestDetail().setIp(id.toString()));
    }
}
